luci-app-statistics: add watt-ups for nut and skip unsupported values
authorJo-Philipp Wich <[email protected]>
Mon, 3 Apr 2023 10:45:50 +0000 (12:45 +0200)
committerJo-Philipp Wich <[email protected]>
Mon, 3 Apr 2023 11:14:07 +0000 (13:14 +0200)
commitcf237445ee71beb67231e8e7dd19a5e0971b78f1
treee3ae82870e91b46002fedd2c472a6227f52de584
parentf7f34d4514b9d7326e52fb51ec3d9c0dfc9fd6e7
luci-app-statistics: add watt-ups for nut and skip unsupported values

Only render NUT charts for actually available data and add a chart
definition for `watt-ups` values while we're at it.

Ref: https://forum.openwrt.org/t/x/156246
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit dd1111407d8f0b1f7f761c5ebbe6ae43a268a4a4)
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/nut.js